<?php

namespace app\index\controller;

use app\index\model\Student;
use think\facade\Config;

//模型是和一张数据表绑定的
class ModelDemo{
	function __construct(){
		Config::set('app_trace',true);
	}
	
	function get(){
		$res = Student::get(3);
		dump($res);
		
		$res = Student::field('id,name,email')
		->where('id','9')
		->find();
		dump($res);
	}
}

